package com.bw.mvp.V;

import android.os.Bundle;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;

import com.bw.mvp.P.InitPretenter;

/**
 * create by ertu
 * create on 2021/9/9
 * description
 */
public abstract class BannerActivity <P extends InitPretenter> extends AppCompatActivity implements InitActivity,InitView {
    protected P plis;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(bandLayoud());
        initView();
        initDate();
    }

    @Override
    public void showLayout() {

    }

    @Override
    public void haidLayout() {

    }

    @Override
    public void tostLayout(String name) {

    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
        if (plis!=null)
        {
            plis=null;
            plis.diserPretenter();
        }
    }
}
